xen: arm: correct off by one in xgene-storm's map_one_mmio
authorIan Campbell <ian.campbell@citrix.com>
Wed, 19 Nov 2014 15:28:13 +0000 (15:28 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 20 Nov 2014 15:38:48 +0000 (15:38 +0000)
commit0f25d1b324b7922094c9e1bde78d7df01d57dadc
treedbedf1a6ea4e17aa26e26fd8d76eddd4fdf2d6df
parent38ce10818f00b419a92fbe6cce9141447c1f2139
xen: arm: correct off by one in xgene-storm's map_one_mmio

The callers pass the end as the pfn immediately *after* the last page to be
mapped, therefore adding one is incorrect and causes an additional page to be
mapped.

At the same time correct the printing of the mfn values, zero-padding them to
16 digits as for a paddr when they are frame numbers is just confusing.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: Julien Grall <julien.grall@linaro.org>
xen/arch/arm/platforms/xgene-storm.c